import axios from '@/libs/request/axios'
import QS from 'qs';
// 获取收据信息
export const getReceiptRecordList = (params) => {
    return axios.request({
        url: '/contractGateway/receiptHandle/getReceiptRecordList',
        method: 'post',
        data: params,
    })
}
// 获取撤销收款信息
export const getReceiptRecord = (id) => {
    return axios.request({
        url: '/contractBasic/receiptHandle/getReceiptRecord',
        data: QS.stringify({ id: id}),
        method: 'post',
        headers: {'content-type': 'application/x-www-form-urlencoded'},
    })
}
// 根据id查询收据信息
export const getReceiptRecordInfo = (params) => {
    return axios.request({
        url: `/contractGateway/receiptHandle/getReceiptRecordInfo`,
        method: 'post',
        data: params,
    })
};
// 根据条件查询收据信息
export const queryManageCollectCancelList = (params) => {
    return axios.request({
        url: '/contractManage/revokeCollection/queryManageCollectCancelList',
        method: 'post',
        data: params,
    })
};
export const revokedStartProcess = (params) => {
    return axios.request({
        url: '/contractManage/revokeCollection/revokedStartProcess',
        method: 'post',
        data: params,
    })
}
export const revokeSubmitProcess = (params) => {
    return axios.request({
        url: '/contractManage/revokeCollection/revokeSubmitProcess',
        method: 'post',
        data: params,
    })
}
//保存
export const saveCollectCancel = (params) => {
    return axios.request({
        url: '/contractManage/revokeCollection/saveCollectCancel',
        method: 'post',
        data: params,
    })
}
//通过ID查询
export const getManageCollectCancel = (id) => {
    return axios.request({
        url: `/contractManage/revokeCollection/getManageCollectCancel`,
        data: QS.stringify({id: id}),
        method: 'post',
        headers: {'content-type': 'application/x-www-form-urlencoded'},
    })
}
//通过校验
export const agreeValid = (params) => {
    return axios.request({
        url: '/contractManage/revokeCollection/agreeValid',
        method: 'post',
        data: params,
    })
}
//通过案件号查询
export const getManageCollectCancelByCaseNo = (caseNo) => {
    return axios.request({
        url: `/contractManage/revokeCollection/getManageCollectCancelByCaseNo`,
        data: QS.stringify({caseNo: caseNo}),
        method: 'post',
        headers: {'content-type': 'application/x-www-form-urlencoded'},
    })
}

